package com.hehan.hhdemo.service.impl;

import com.hehan.hhdemo.mapper.LogMapper;
import com.hehan.hhdemo.po.Log;
import com.hehan.hhdemo.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by hehan on 2018/11/19.
 */
@Service
public class LogServiceImpl implements LogService {

    @Autowired
    private LogMapper logMapper;

    @Override
    @Transactional
    public void create(Log log) {
        logMapper.insertSelective(log);
    }
}
